import axiosInstance from "@/utils/request";

/**
 * 图书信接口地址
 */
enum Api {
    BASE_URL = '/dailyHealthInfo',
    PAGE_DAILY_HEALTH_INFO = `${BASE_URL}/pageInfo`,
    SAVE_INFO = `${BASE_URL}/saveInfo`,
}

/**
 * 分页查询
 * @param data 参数
 */
export const pageDailyHealthInfoReq = (data: any) => {
    return axiosInstance({
        url: Api.PAGE_DAILY_HEALTH_INFO,
        method: 'post',
        data: data
    })
}

/**
 * 保存信息
 * @param data 参数
 */
export const saveInfoReq = (data: any) => {
    return axiosInstance({
        url: Api.SAVE_INFO,
        method: 'post',
        data: data
    })
}
